3.4.35 \(\int \frac {(f+g x^2)^2 \log (c (d+e x^2)^p)}{x^4} \, dx\) [335]

Optimal. Leaf size=169 \[ -\frac {2 e f^2 p}{3 d x}-2 g^2 p x-\frac {2 e^{3/2} f^2 p \tan ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d}}\right )}{3 d^{3/2}}+\frac {4 \sqrt {e} f g p \tan ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d}}\right )}{\sqrt {d}}+\frac {2 \sqrt {d} g^2 p \tan ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d}}\right )}{\sqrt {e}}-\frac {f^2 \log \left (c \left (d+e x^2\right )^p\right )}{3 x^3}-\frac {2 f g \log \left (c \left (d+e x^2\right )^p\right )}{x}+g^2 x \log \left (c \left (d+e x^2\right )^p\right ) \]

[Out]

-2/3*e*f^2*p/d/x-2*g^2*p*x-2/3*e^(3/2)*f^2*p*arctan(x*e^(1/2)/d^(1/2))/d^(3/2)-1/3*f^2*ln(c*(e*x^2+d)^p)/x^3-2
*f*g*ln(c*(e*x^2+d)^p)/x+g^2*x*ln(c*(e*x^2+d)^p)+2*g^2*p*arctan(x*e^(1/2)/d^(1/2))*d^(1/2)/e^(1/2)+4*f*g*p*arc
tan(x*e^(1/2)/d^(1/2))*e^(1/2)/d^(1/2)

________________________________________________________________________________________

Rubi [A]
time = 0.10, antiderivative size = 169, normalized size of antiderivative = 1.00, number of steps used = 10, number of rules used = 6, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.240, Rules used = {2526, 2498, 327, 211, 2505, 331} \begin {gather*} -\frac {2 e^{3/2} f^2 p \text {ArcTan}\left (\frac {\sqrt {e} x}{\sqrt {d}}\right )}{3 d^{3/2}}+\frac {4 \sqrt {e} f g p \text {ArcTan}\left (\frac {\sqrt {e} x}{\sqrt {d}}\right )}{\sqrt {d}}+\frac {2 \sqrt {d} g^2 p \text {ArcTan}\left (\frac {\sqrt {e} x}{\sqrt {d}}\right )}{\sqrt {e}}-\frac {f^2 \log \left (c \left (d+e x^2\right )^p\right )}{3 x^3}-\frac {2 f g \log \left (c \left (d+e x^2\right )^p\right )}{x}+g^2 x \log \left (c \left (d+e x^2\right )^p\right )-\frac {2 e f^2 p}{3 d x}-2 g^2 p x \end {gather*}

Antiderivative was successfully verified.

[In]

Int[((f + g*x^2)^2*Log[c*(d + e*x^2)^p])/x^4,x]

[Out]

(-2*e*f^2*p)/(3*d*x) - 2*g^2*p*x - (2*e^(3/2)*f^2*p*ArcTan[(Sqrt[e]*x)/Sqrt[d]])/(3*d^(3/2)) + (4*Sqrt[e]*f*g*
p*ArcTan[(Sqrt[e]*x)/Sqrt[d]])/Sqrt[d] + (2*Sqrt[d]*g^2*p*ArcTan[(Sqrt[e]*x)/Sqrt[d]])/Sqrt[e] - (f^2*Log[c*(d
 + e*x^2)^p])/(3*x^3) - (2*f*g*Log[c*(d + e*x^2)^p])/x + g^2*x*Log[c*(d + e*x^2)^p]

Rule 211

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(Rt[a/b, 2]/a)*ArcTan[x/Rt[a/b, 2]], x] /; FreeQ[{a, b}, x]
&& PosQ[a/b]

Rule 327

Int[((c_.)*(x_))^(m_)*((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Simp[c^(n - 1)*(c*x)^(m - n + 1)*((a + b*x^n
)^(p + 1)/(b*(m + n*p + 1))), x] - Dist[a*c^n*((m - n + 1)/(b*(m + n*p + 1))), Int[(c*x)^(m - n)*(a + b*x^n)^p
, x], x] /; FreeQ[{a, b, c, p}, x] && IGtQ[n, 0] && GtQ[m, n - 1] && NeQ[m + n*p + 1, 0] && IntBinomialQ[a, b,
 c, n, m, p, x]

Rule 331

Int[((c_.)*(x_))^(m_)*((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Simp[(c*x)^(m + 1)*((a + b*x^n)^(p + 1)/(a*c
*(m + 1))), x] - Dist[b*((m + n*(p + 1) + 1)/(a*c^n*(m + 1))), Int[(c*x)^(m + n)*(a + b*x^n)^p, x], x] /; Free
Q[{a, b, c, p}, x] && IGtQ[n, 0] && LtQ[m, -1] && IntBinomialQ[a, b, c, n, m, p, x]

Rule 2498

Int[Log[(c_.)*((d_) + (e_.)*(x_)^(n_))^(p_.)], x_Symbol] :> Simp[x*Log[c*(d + e*x^n)^p], x] - Dist[e*n*p, Int[
x^n/(d + e*x^n), x], x] /; FreeQ[{c, d, e, n, p}, x]

Rule 2505

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_)^(n_))^(p_.)]*(b_.))*((f_.)*(x_))^(m_.), x_Symbol] :> Simp[(f*x)^(m +
 1)*((a + b*Log[c*(d + e*x^n)^p])/(f*(m + 1))), x] - Dist[b*e*n*(p/(f*(m + 1))), Int[x^(n - 1)*((f*x)^(m + 1)/
(d + e*x^n)), x], x] /; FreeQ[{a, b, c, d, e, f, m, n, p}, x] && NeQ[m, -1]

Rule 2526

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_)^(n_))^(p_.)]*(b_.))^(q_.)*(x_)^(m_.)*((f_) + (g_.)*(x_)^(s_))^(r_.),
 x_Symbol] :> Int[ExpandIntegrand[(a + b*Log[c*(d + e*x^n)^p])^q, x^m*(f + g*x^s)^r, x], x] /; FreeQ[{a, b, c,
 d, e, f, g, m, n, p, q, r, s}, x] && IGtQ[q, 0] && IntegerQ[m] && IntegerQ[r] && IntegerQ[s]

Rubi steps

\begin {align*} \int \frac {\left (f+g x^2\right )^2 \log \left (c \left (d+e x^2\right )^p\right )}{x^4} \, dx &=\int \left (g^2 \log \left (c \left (d+e x^2\right )^p\right )+\frac {f^2 \log \left (c \left (d+e x^2\right )^p\right )}{x^4}+\frac {2 f g \log \left (c \left (d+e x^2\right )^p\right )}{x^2}\right ) \, dx\\ &=f^2 \int \frac {\log \left (c \left (d+e x^2\right )^p\right )}{x^4} \, dx+(2 f g) \int \frac {\log \left (c \left (d+e x^2\right )^p\right )}{x^2} \, dx+g^2 \int \log \left (c \left (d+e x^2\right )^p\right ) \, dx\\ &=-\frac {f^2 \log \left (c \left (d+e x^2\right )^p\right )}{3 x^3}-\frac {2 f g \log \left (c \left (d+e x^2\right )^p\right )}{x}+g^2 x \log \left (c \left (d+e x^2\right )^p\right )+\frac {1}{3} \left (2 e f^2 p\right ) \int \frac {1}{x^2 \left (d+e x^2\right )} \, dx+(4 e f g p) \int \frac {1}{d+e x^2} \, dx-\left (2 e g^2 p\right ) \int \frac {x^2}{d+e x^2} \, dx\\ &=-\frac {2 e f^2 p}{3 d x}-2 g^2 p x+\frac {4 \sqrt {e} f g p \tan ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d}}\right )}{\sqrt {d}}-\frac {f^2 \log \left (c \left (d+e x^2\right )^p\right )}{3 x^3}-\frac {2 f g \log \left (c \left (d+e x^2\right )^p\right )}{x}+g^2 x \log \left (c \left (d+e x^2\right )^p\right )-\frac {\left (2 e^2 f^2 p\right ) \int \frac {1}{d+e x^2} \, dx}{3 d}+\left (2 d g^2 p\right ) \int \frac {1}{d+e x^2} \, dx\\ &=-\frac {2 e f^2 p}{3 d x}-2 g^2 p x-\frac {2 e^{3/2} f^2 p \tan ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d}}\right )}{3 d^{3/2}}+\frac {4 \sqrt {e} f g p \tan ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d}}\right )}{\sqrt {d}}+\frac {2 \sqrt {d} g^2 p \tan ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d}}\right )}{\sqrt {e}}-\frac {f^2 \log \left (c \left (d+e x^2\right )^p\right )}{3 x^3}-\frac {2 f g \log \left (c \left (d+e x^2\right )^p\right )}{x}+g^2 x \log \left (c \left (d+e x^2\right )^p\right )\\ \end {align*}

________________________________________________________________________________________

Mathematica [C] Result contains higher order function than in optimal. Order 5 vs. order 3 in optimal.
time = 0.10, size = 113, normalized size = 0.67 \begin {gather*} -2 g^2 p x+\frac {2 g (2 e f+d g) p \tan ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d}}\right )}{\sqrt {d} \sqrt {e}}-\frac {2 e f^2 p \, _2F_1\left (-\frac {1}{2},1;\frac {1}{2};-\frac {e x^2}{d}\right )}{3 d x}-\frac {\left (f^2+6 f g x^2-3 g^2 x^4\right ) \log \left (c \left (d+e x^2\right )^p\right )}{3 x^3} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[((f + g*x^2)^2*Log[c*(d + e*x^2)^p])/x^4,x]

[Out]

-2*g^2*p*x + (2*g*(2*e*f + d*g)*p*ArcTan[(Sqrt[e]*x)/Sqrt[d]])/(Sqrt[d]*Sqrt[e]) - (2*e*f^2*p*Hypergeometric2F
1[-1/2, 1, 1/2, -((e*x^2)/d)])/(3*d*x) - ((f^2 + 6*f*g*x^2 - 3*g^2*x^4)*Log[c*(d + e*x^2)^p])/(3*x^3)

________________________________________________________________________________________

Maple [C] Result contains higher order function than in optimal. Order 9 vs. order 3.
time = 0.45, size = 700, normalized size = 4.14

method result size
risch \(-\frac {\left (-3 g^{2} x^{4}+6 f g \,x^{2}+f^{2}\right ) \ln \left (\left (e \,x^{2}+d \right )^{p}\right )}{3 x^{3}}+\frac {-6 i \pi d f g \,x^{2} \mathrm {csgn}\left (i c \left (e \,x^{2}+d \right )^{p}\right )^{2} \mathrm {csgn}\left (i c \right )+3 i \pi d \,g^{2} x^{4} \mathrm {csgn}\left (i \left (e \,x^{2}+d \right )^{p}\right ) \mathrm {csgn}\left (i c \left (e \,x^{2}+d \right )^{p}\right )^{2}+6 i \pi d f g \,x^{2} \mathrm {csgn}\left (i c \left (e \,x^{2}+d \right )^{p}\right )^{3}+6 i \pi d f g \,x^{2} \mathrm {csgn}\left (i \left (e \,x^{2}+d \right )^{p}\right ) \mathrm {csgn}\left (i c \left (e \,x^{2}+d \right )^{p}\right ) \mathrm {csgn}\left (i c \right )+3 i \pi d \,g^{2} x^{4} \mathrm {csgn}\left (i c \left (e \,x^{2}+d \right )^{p}\right )^{2} \mathrm {csgn}\left (i c \right )-i \pi d \,f^{2} \mathrm {csgn}\left (i \left (e \,x^{2}+d \right )^{p}\right ) \mathrm {csgn}\left (i c \left (e \,x^{2}+d \right )^{p}\right )^{2}+i \pi d \,f^{2} \mathrm {csgn}\left (i \left (e \,x^{2}+d \right )^{p}\right ) \mathrm {csgn}\left (i c \left (e \,x^{2}+d \right )^{p}\right ) \mathrm {csgn}\left (i c \right )-3 i \pi d \,g^{2} x^{4} \mathrm {csgn}\left (i \left (e \,x^{2}+d \right )^{p}\right ) \mathrm {csgn}\left (i c \left (e \,x^{2}+d \right )^{p}\right ) \mathrm {csgn}\left (i c \right )-3 i \pi d \,g^{2} x^{4} \mathrm {csgn}\left (i c \left (e \,x^{2}+d \right )^{p}\right )^{3}+i \pi d \,f^{2} \mathrm {csgn}\left (i c \left (e \,x^{2}+d \right )^{p}\right )^{3}-i \pi d \,f^{2} \mathrm {csgn}\left (i c \left (e \,x^{2}+d \right )^{p}\right )^{2} \mathrm {csgn}\left (i c \right )-6 i \pi d f g \,x^{2} \mathrm {csgn}\left (i \left (e \,x^{2}+d \right )^{p}\right ) \mathrm {csgn}\left (i c \left (e \,x^{2}+d \right )^{p}\right )^{2}+6 \ln \left (c \right ) d \,g^{2} x^{4}-12 d \,g^{2} p \,x^{4}-12 \ln \left (c \right ) d f g \,x^{2}-4 p e \,x^{2} f^{2}+2 \left (\munderset {\textit {\_R} =\RootOf \left (9 g^{4} p^{2} d^{4}+36 e f \,p^{2} g^{3} d^{3}+30 d^{2} e^{2} f^{2} g^{2} p^{2}-12 d \,e^{3} f^{3} g \,p^{2}+e^{4} f^{4} p^{2}+d^{3} e \,\textit {\_Z}^{2}\right )}{\sum }\textit {\_R} \ln \left (\left (18 g^{4} p^{2} d^{4}+72 e f \,p^{2} g^{3} d^{3}+60 d^{2} e^{2} f^{2} g^{2} p^{2}-24 d \,e^{3} f^{3} g \,p^{2}+2 e^{4} f^{4} p^{2}+3 \textit {\_R}^{2} d^{3} e \right ) x +\left (-3 d^{4} g^{2} p -6 d^{3} e f g p +d^{2} e^{2} f^{2} p \right ) \textit {\_R} \right )\right ) d \,x^{3}-2 \ln \left (c \right ) d \,f^{2}}{6 d \,x^{3}}\) \(700\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((g*x^2+f)^2*ln(c*(e*x^2+d)^p)/x^4,x,method=_RETURNVERBOSE)

[Out]

-1/3*(-3*g^2*x^4+6*f*g*x^2+f^2)/x^3*ln((e*x^2+d)^p)+1/6*(-6*I*Pi*d*f*g*x^2*csgn(I*c*(e*x^2+d)^p)^2*csgn(I*c)+3
*I*Pi*d*g^2*x^4*csgn(I*(e*x^2+d)^p)*csgn(I*c*(e*x^2+d)^p)^2+6*I*Pi*d*f*g*x^2*csgn(I*c*(e*x^2+d)^p)^3+6*I*Pi*d*
f*g*x^2*csgn(I*(e*x^2+d)^p)*csgn(I*c*(e*x^2+d)^p)*csgn(I*c)+3*I*Pi*d*g^2*x^4*csgn(I*c*(e*x^2+d)^p)^2*csgn(I*c)
-I*Pi*d*f^2*csgn(I*(e*x^2+d)^p)*csgn(I*c*(e*x^2+d)^p)^2+I*Pi*d*f^2*csgn(I*(e*x^2+d)^p)*csgn(I*c*(e*x^2+d)^p)*c
sgn(I*c)-3*I*Pi*d*g^2*x^4*csgn(I*(e*x^2+d)^p)*csgn(I*c*(e*x^2+d)^p)*csgn(I*c)-3*I*Pi*d*g^2*x^4*csgn(I*c*(e*x^2
+d)^p)^3+I*Pi*d*f^2*csgn(I*c*(e*x^2+d)^p)^3-I*Pi*d*f^2*csgn(I*c*(e*x^2+d)^p)^2*csgn(I*c)-6*I*Pi*d*f*g*x^2*csgn
(I*(e*x^2+d)^p)*csgn(I*c*(e*x^2+d)^p)^2+6*ln(c)*d*g^2*x^4-12*d*g^2*p*x^4-12*ln(c)*d*f*g*x^2-4*p*e*x^2*f^2+2*su
m(_R*ln((18*d^4*g^4*p^2+72*d^3*e*f*g^3*p^2+60*d^2*e^2*f^2*g^2*p^2-24*d*e^3*f^3*g*p^2+2*e^4*f^4*p^2+3*_R^2*d^3*
e)*x+(-3*d^4*g^2*p-6*d^3*e*f*g*p+d^2*e^2*f^2*p)*_R),_R=RootOf(9*d^4*g^4*p^2+36*d^3*e*f*g^3*p^2+30*d^2*e^2*f^2*
g^2*p^2-12*d*e^3*f^3*g*p^2+e^4*f^4*p^2+_Z^2*d^3*e))*d*x^3-2*ln(c)*d*f^2)/d/x^3

________________________________________________________________________________________

Maxima [A]
time = 0.57, size = 101, normalized size = 0.60 \begin {gather*} -\frac {2}{3} \, {\left (3 \, g^{2} x e^{\left (-1\right )} - \frac {{\left (3 \, d^{2} g^{2} + 6 \, d f g e - f^{2} e^{2}\right )} \arctan \left (\frac {x e^{\frac {1}{2}}}{\sqrt {d}}\right ) e^{\left (-\frac {3}{2}\right )}}{d^{\frac {3}{2}}} + \frac {f^{2}}{d x}\right )} p e + \frac {1}{3} \, {\left (3 \, g^{2} x - \frac {6 \, f g x^{2} + f^{2}}{x^{3}}\right )} \log \left ({\left (x^{2} e + d\right )}^{p} c\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((g*x^2+f)^2*log(c*(e*x^2+d)^p)/x^4,x, algorithm="maxima")

[Out]

-2/3*(3*g^2*x*e^(-1) - (3*d^2*g^2 + 6*d*f*g*e - f^2*e^2)*arctan(x*e^(1/2)/sqrt(d))*e^(-3/2)/d^(3/2) + f^2/(d*x
))*p*e + 1/3*(3*g^2*x - (6*f*g*x^2 + f^2)/x^3)*log((x^2*e + d)^p*c)

________________________________________________________________________________________

Fricas [A]
time = 0.39, size = 365, normalized size = 2.16 \begin {gather*} \left [-\frac {{\left (6 \, d^{2} g^{2} p x^{4} e + 2 \, d f^{2} p x^{2} e^{2} - {\left (3 \, d^{2} g^{2} p x^{4} - 6 \, d^{2} f g p x^{2} - d^{2} f^{2} p\right )} e \log \left (x^{2} e + d\right ) - {\left (3 \, d^{2} g^{2} x^{4} - 6 \, d^{2} f g x^{2} - d^{2} f^{2}\right )} e \log \left (c\right ) - {\left (3 \, d^{2} g^{2} p x^{3} + 6 \, d f g p x^{3} e - f^{2} p x^{3} e^{2}\right )} \sqrt {-d e} \log \left (\frac {x^{2} e + 2 \, \sqrt {-d e} x - d}{x^{2} e + d}\right )\right )} e^{\left (-1\right )}}{3 \, d^{2} x^{3}}, -\frac {{\left (6 \, d^{2} g^{2} p x^{4} e + 2 \, d f^{2} p x^{2} e^{2} - 2 \, {\left (3 \, d^{2} g^{2} p x^{3} + 6 \, d f g p x^{3} e - f^{2} p x^{3} e^{2}\right )} \sqrt {d} \arctan \left (\frac {x e^{\frac {1}{2}}}{\sqrt {d}}\right ) e^{\frac {1}{2}} - {\left (3 \, d^{2} g^{2} p x^{4} - 6 \, d^{2} f g p x^{2} - d^{2} f^{2} p\right )} e \log \left (x^{2} e + d\right ) - {\left (3 \, d^{2} g^{2} x^{4} - 6 \, d^{2} f g x^{2} - d^{2} f^{2}\right )} e \log \left (c\right )\right )} e^{\left (-1\right )}}{3 \, d^{2} x^{3}}\right ] \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((g*x^2+f)^2*log(c*(e*x^2+d)^p)/x^4,x, algorithm="fricas")

[Out]

[-1/3*(6*d^2*g^2*p*x^4*e + 2*d*f^2*p*x^2*e^2 - (3*d^2*g^2*p*x^4 - 6*d^2*f*g*p*x^2 - d^2*f^2*p)*e*log(x^2*e + d
) - (3*d^2*g^2*x^4 - 6*d^2*f*g*x^2 - d^2*f^2)*e*log(c) - (3*d^2*g^2*p*x^3 + 6*d*f*g*p*x^3*e - f^2*p*x^3*e^2)*s
qrt(-d*e)*log((x^2*e + 2*sqrt(-d*e)*x - d)/(x^2*e + d)))*e^(-1)/(d^2*x^3), -1/3*(6*d^2*g^2*p*x^4*e + 2*d*f^2*p
*x^2*e^2 - 2*(3*d^2*g^2*p*x^3 + 6*d*f*g*p*x^3*e - f^2*p*x^3*e^2)*sqrt(d)*arctan(x*e^(1/2)/sqrt(d))*e^(1/2) - (
3*d^2*g^2*p*x^4 - 6*d^2*f*g*p*x^2 - d^2*f^2*p)*e*log(x^2*e + d) - (3*d^2*g^2*x^4 - 6*d^2*f*g*x^2 - d^2*f^2)*e*
log(c))*e^(-1)/(d^2*x^3)]

________________________________________________________________________________________

Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 381 vs. \(2 (170) = 340\).
time = 80.89, size = 381, normalized size = 2.25 \begin {gather*} \begin {cases} \left (- \frac {f^{2}}{3 x^{3}} - \frac {2 f g}{x} + g^{2} x\right ) \log {\left (0^{p} c \right )} & \text {for}\: d = 0 \wedge e = 0 \\- \frac {2 f^{2} p}{9 x^{3}} - \frac {f^{2} \log {\left (c \left (e x^{2}\right )^{p} \right )}}{3 x^{3}} - \frac {4 f g p}{x} - \frac {2 f g \log {\left (c \left (e x^{2}\right )^{p} \right )}}{x} - 2 g^{2} p x + g^{2} x \log {\left (c \left (e x^{2}\right )^{p} \right )} & \text {for}\: d = 0 \\\left (- \frac {f^{2}}{3 x^{3}} - \frac {2 f g}{x} + g^{2} x\right ) \log {\left (c d^{p} \right )} & \text {for}\: e = 0 \\\frac {2 d g^{2} p \log {\left (x - \sqrt {- \frac {d}{e}} \right )}}{e \sqrt {- \frac {d}{e}}} - \frac {d g^{2} \log {\left (c \left (d + e x^{2}\right )^{p} \right )}}{e \sqrt {- \frac {d}{e}}} - \frac {f^{2} \log {\left (c \left (d + e x^{2}\right )^{p} \right )}}{3 x^{3}} + \frac {4 f g p \log {\left (x - \sqrt {- \frac {d}{e}} \right )}}{\sqrt {- \frac {d}{e}}} - \frac {2 f g \log {\left (c \left (d + e x^{2}\right )^{p} \right )}}{\sqrt {- \frac {d}{e}}} - \frac {2 f g \log {\left (c \left (d + e x^{2}\right )^{p} \right )}}{x} - 2 g^{2} p x + g^{2} x \log {\left (c \left (d + e x^{2}\right )^{p} \right )} - \frac {2 e f^{2} p \log {\left (x - \sqrt {- \frac {d}{e}} \right )}}{3 d \sqrt {- \frac {d}{e}}} - \frac {2 e f^{2} p}{3 d x} + \frac {e f^{2} \log {\left (c \left (d + e x^{2}\right )^{p} \right )}}{3 d \sqrt {- \frac {d}{e}}} & \text {otherwise} \end {cases} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((g*x**2+f)**2*ln(c*(e*x**2+d)**p)/x**4,x)

[Out]

Piecewise(((-f**2/(3*x**3) - 2*f*g/x + g**2*x)*log(0**p*c), Eq(d, 0) & Eq(e, 0)), (-2*f**2*p/(9*x**3) - f**2*l
og(c*(e*x**2)**p)/(3*x**3) - 4*f*g*p/x - 2*f*g*log(c*(e*x**2)**p)/x - 2*g**2*p*x + g**2*x*log(c*(e*x**2)**p),
Eq(d, 0)), ((-f**2/(3*x**3) - 2*f*g/x + g**2*x)*log(c*d**p), Eq(e, 0)), (2*d*g**2*p*log(x - sqrt(-d/e))/(e*sqr
t(-d/e)) - d*g**2*log(c*(d + e*x**2)**p)/(e*sqrt(-d/e)) - f**2*log(c*(d + e*x**2)**p)/(3*x**3) + 4*f*g*p*log(x
 - sqrt(-d/e))/sqrt(-d/e) - 2*f*g*log(c*(d + e*x**2)**p)/sqrt(-d/e) - 2*f*g*log(c*(d + e*x**2)**p)/x - 2*g**2*
p*x + g**2*x*log(c*(d + e*x**2)**p) - 2*e*f**2*p*log(x - sqrt(-d/e))/(3*d*sqrt(-d/e)) - 2*e*f**2*p/(3*d*x) + e
*f**2*log(c*(d + e*x**2)**p)/(3*d*sqrt(-d/e)), True))

________________________________________________________________________________________

Giac [A]
time = 5.45, size = 154, normalized size = 0.91 \begin {gather*} \frac {2 \, {\left (3 \, d^{2} g^{2} p + 6 \, d f g p e - f^{2} p e^{2}\right )} \arctan \left (\frac {x e^{\frac {1}{2}}}{\sqrt {d}}\right ) e^{\left (-\frac {1}{2}\right )}}{3 \, d^{\frac {3}{2}}} + \frac {3 \, d g^{2} p x^{4} \log \left (x^{2} e + d\right ) - 6 \, d g^{2} p x^{4} + 3 \, d g^{2} x^{4} \log \left (c\right ) - 6 \, d f g p x^{2} \log \left (x^{2} e + d\right ) - 2 \, f^{2} p x^{2} e - 6 \, d f g x^{2} \log \left (c\right ) - d f^{2} p \log \left (x^{2} e + d\right ) - d f^{2} \log \left (c\right )}{3 \, d x^{3}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((g*x^2+f)^2*log(c*(e*x^2+d)^p)/x^4,x, algorithm="giac")

[Out]

2/3*(3*d^2*g^2*p + 6*d*f*g*p*e - f^2*p*e^2)*arctan(x*e^(1/2)/sqrt(d))*e^(-1/2)/d^(3/2) + 1/3*(3*d*g^2*p*x^4*lo
g(x^2*e + d) - 6*d*g^2*p*x^4 + 3*d*g^2*x^4*log(c) - 6*d*f*g*p*x^2*log(x^2*e + d) - 2*f^2*p*x^2*e - 6*d*f*g*x^2
*log(c) - d*f^2*p*log(x^2*e + d) - d*f^2*log(c))/(d*x^3)

________________________________________________________________________________________

Mupad [B]
time = 0.39, size = 108, normalized size = 0.64 \begin {gather*} \ln \left (c\,{\left (e\,x^2+d\right )}^p\right )\,\left (\frac {8\,g^2\,x}{3}-\frac {\frac {f^2}{3}+2\,f\,g\,x^2+\frac {5\,g^2\,x^4}{3}}{x^3}\right )-2\,g^2\,p\,x+\frac {2\,p\,\mathrm {atan}\left (\frac {\sqrt {e}\,x}{\sqrt {d}}\right )\,\left (3\,d^2\,g^2+6\,d\,e\,f\,g-e^2\,f^2\right )}{3\,d^{3/2}\,\sqrt {e}}-\frac {2\,e\,f^2\,p}{3\,d\,x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((log(c*(d + e*x^2)^p)*(f + g*x^2)^2)/x^4,x)

[Out]

log(c*(d + e*x^2)^p)*((8*g^2*x)/3 - (f^2/3 + (5*g^2*x^4)/3 + 2*f*g*x^2)/x^3) - 2*g^2*p*x + (2*p*atan((e^(1/2)*
x)/d^(1/2))*(3*d^2*g^2 - e^2*f^2 + 6*d*e*f*g))/(3*d^(3/2)*e^(1/2)) - (2*e*f^2*p)/(3*d*x)

________________________________________________________________________________________